package com.bite.ioc.controller;

import com.bite.ioc.model.UserInfo;
import com.bite.ioc.service.UserService;
import jakarta.annotation.Resource;
import jakarta.annotation.Resources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;

@Controller("userController")
public class UserController {

    @Qualifier("userInfo1")
    @Autowired
    private UserInfo userInfo;
//    @Autowired
//    private UserService user;


//    @Resource(name = "UCInfo")
//    private UserInfo user;


    public void sayHi(){
//        user.doService();
        System.out.println(userInfo);
        System.out.println("hi, user controller...");
    }
}
